package com.nineyang.controller;

import com.nineyang.bean.User;
import com.nineyang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:UserController
 * Description:
 * author: jiuyang
 * DateTime: 2025/2/20 上午10:07
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("/info")
    public User findUserInfo(){
        return userService.getUserInfo();
    }

}
